package net.esj.basic.plugins.view.easyui;

import java.io.Serializable;
import java.util.List;
import net.esj.basic.plugins.view.easyui.EasyUiTreeGrid.EasyUiTreeGridItem;

public  class EasyUiTreeGrid<T extends EasyUiTreeGridItem> {

	private long total;
	
	private List<T> rows;
	
	private  List<T> footer;
	
	public long getTotal() {
		return rows==null?0:rows.size();
	}

	public void setTotal(long total) {
		this.total = total;
	}


	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public List<T> getFooter() {
		return footer;
	}

	public void setFooter(List<T> footer) {
		this.footer = footer;
	}



	public static interface EasyUiTreeGridItem {
		Serializable getId();
		
		Serializable getParentId();
	}
}
